export const statusEnums = {
  1: '在职',
  2: '离职'
}
export const statusList = [
  { label: '在职', value: 1 },
  { label: '离职', value: 2 }
]

/** 表单 */
export const formData = {
  name: '',
  status: ''
}
export const formConfig = [
  {
    type: 'select',
    prop: 'name',
    label: '姓名',
    placeholder: '请输入姓名',
    clearable: true,
    filterable: true,
    options: []
  },
  {
    type: 'select',
    prop: 'select',
    label: '在职状态',
    clearable: true,
    isEnum: true,
    options: statusEnums
  }
]
/** 表格 */
export const tableColumns = [
  {
    label: '姓名',
    prop: 'name'
  },
  {
    label: '呈报日薪',
    prop: 'subDailyWage'
  },
  {
    label: '上报公司日薪',
    prop: 'actualDailyWage'
  },
  {
    label: '日薪差额',
    prop: 'diffDailyWage'
  },
  {
    label: '在职状态',
    prop: 'status',
    slotName: 'status'
  },
  {
    label: '创建时间',
    prop: 'createTime'
  },
  {
    label: '操作',
    prop: 'operation',
    slotName: 'operation'
  }
]

/** 新增 编辑 */
export const aFormData = {
  name: '',
  status: 1
}
export const aFormConfig = [
  {
    type: 'select',
    prop: 'name',
    label: '选择人员',
    span: 24,
    clearable: true,
    options: []
  },
  {
    type: 'input',
    prop: 'subDailyWage',
    label: '呈报日薪',
    span: 24
  },
  {
    type: 'input',
    prop: 'actualDailyWage',
    label: '上报公司日薪',
    span: 24
  }
]
export const aFormRules = {
  name: [{ required: true, message: '请选择人员', trigger: 'change' }],
  subDailyWage: [
    { required: true, message: '请输入呈报日薪', trigger: 'blur' }
  ],
  actualDailyWage: [
    { required: true, message: '请输入上报公司日薪', trigger: 'blur' }
  ]
}
